package top.shen33.yang.model.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallOrder extends Model<MmallOrder> {

private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
                    @TableId(value = "id", type = IdType.AUTO)
                private Integer id;
    /**
     * 订单号
     */
        private Long orderNo;
    /**
     * 用户id
     */
        private Integer userId;
        private Integer shippingId;
    /**
     * 实际付款金额,单位是元,保留两位小数
     */
        private BigDecimal payment;
    /**
     * 支付类型,1-在线支付
     */
        private Integer paymentType;
    /**
     * 运费,单位是元
     */
        private Integer postage;
    /**
     * 订单状态:0-已取消-10-未付款，20-已付款，40-已发货，50-交易成功，60-交易关闭
     */
        private Integer status;
    /**
     * 支付时间
     */
        private Date paymentTime;
    /**
     * 发货时间
     */
        private Date sendTime;
    /**
     * 交易完成时间
     */
        private Date endTime;
    /**
     * 交易关闭时间
     */
        private Date closeTime;
    /**
     * 创建时间
     */
        private Date createTime;
    /**
     * 更新时间
     */
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Long getOrderNo() {
            return orderNo;
            }

        public void setOrderNo(Long orderNo) {
            this.orderNo = orderNo;
            }

    public Integer getUserId() {
            return userId;
            }

        public void setUserId(Integer userId) {
            this.userId = userId;
            }

    public Integer getShippingId() {
            return shippingId;
            }

        public void setShippingId(Integer shippingId) {
            this.shippingId = shippingId;
            }

    public BigDecimal getPayment() {
            return payment;
            }

        public void setPayment(BigDecimal payment) {
            this.payment = payment;
            }

    public Integer getPaymentType() {
            return paymentType;
            }

        public void setPaymentType(Integer paymentType) {
            this.paymentType = paymentType;
            }

    public Integer getPostage() {
            return postage;
            }

        public void setPostage(Integer postage) {
            this.postage = postage;
            }

    public Integer getStatus() {
            return status;
            }

        public void setStatus(Integer status) {
            this.status = status;
            }

    public Date getPaymentTime() {
            return paymentTime;
            }

        public void setPaymentTime(Date paymentTime) {
            this.paymentTime = paymentTime;
            }

    public Date getSendTime() {
            return sendTime;
            }

        public void setSendTime(Date sendTime) {
            this.sendTime = sendTime;
            }

    public Date getEndTime() {
            return endTime;
            }

        public void setEndTime(Date endTime) {
            this.endTime = endTime;
            }

    public Date getCloseTime() {
            return closeTime;
            }

        public void setCloseTime(Date closeTime) {
            this.closeTime = closeTime;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallOrder{" +
                ", id=" + id +
                ", orderNo=" + orderNo +
                ", userId=" + userId +
                ", shippingId=" + shippingId +
                ", payment=" + payment +
                ", paymentType=" + paymentType +
                ", postage=" + postage +
                ", status=" + status +
                ", paymentTime=" + paymentTime +
                ", sendTime=" + sendTime +
                ", endTime=" + endTime +
                ", closeTime=" + closeTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
